package router

import (
	controller "gin_note/controller/user"

	"github.com/gin-gonic/gin"
)

var r *gin.Engine

func init() {
	r = gin.Default()
}

func init_router() {
	user := r.Group("user")
	{
		user.POST("login", controller.User_controller_login)       // user/login
		user.POST("password", controller.User_controller_password) // user/login
		user.POST("zhuce", controller.User_controller_zhuce)       // user/login

	}
}

func Http_start() {
	// 初始化路由
	init_router()

	r.Run(":9527")
}
